package day0724;

public class HeroPlane {
    int b=1;
    public Bullet[] shoot() {
        if (b==1){
            Bullet[] bullets=new Bullet[1];
            Bullet bullet=new Bullet();
            bullets[0]=bullet;
            return bullets;
        }else {
            Bullet[] bullets=new Bullet[1];
            Bullet bullet=new Bullet();
            bullets[0]=bullet;
            return bullets;
        }
    }
}
